package com.x.Part5_接口.Car;

/**
 * ClassName: Vehicle
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.03.05 20:30
 */
public abstract class Vehicle {

    private String brand;
    private String color;

    public Vehicle() {
    }

    public Vehicle(String brand, String color) {
        this.brand = brand;
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public abstract void run();
}
